{"ast":null,"code":"var _jsxFileName = \"/Users/iliyagladkov/Documents/GitHub/to-do-react/src/components/UI/MyModal/MyModal.jsx\";\nimport React from 'react';\nimport cl from './MyModal.module.css';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nexport default function MyModal(_ref) {\n  let {\n    children,\n    visible,\n    setVisible\n  } = _ref;\n  const rootClasses = [cl.myModal];\n  if (visible) {\n    rootClasses.push(cl.active);\n  }\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    className: rootClasses.join(' '),\n    onClick: () => setVisible(false),\n    children: /*#__PURE__*/_jsxDEV(\"div\", {\n      className: cl.myModalContent,\n      onClick: e => e.stopPropagation(),\n      children: children\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 14,\n      columnNumber: 7\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 13,\n    columnNumber: 5\n  }, this);\n}\n_c = MyModal;\nvar _c;\n$RefreshReg$(_c, \"MyModal\");","map":{"version":3,"names":["React","cl","MyModal","children","visible","setVisible","rootClasses","myModal","push","active","join","myModalContent","e","stopPropagation"],"sources":["/Users/iliyagladkov/Documents/GitHub/to-do-react/src/components/UI/MyModal/MyModal.jsx"],"sourcesContent":["import React from 'react'\nimport cl from './MyModal.module.css'\n\nexport default function MyModal({children, visible, setVisible}) {\n\n  const rootClasses = [cl.myModal]\n\n  if(visible) {\n      rootClasses.push(cl.active)\n  }\n\n  return (\n    <div className={rootClasses.join(' ')} onClick={() => setVisible(false)}>\n      <div className={cl.myModalContent} onClick={(e) => e.stopPropagation()}>\n        {children}\n      </div>\n    </div>\n  )\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,sBAAsB;AAAA;AAErC,eAAe,SAASC,OAAO,OAAkC;EAAA,IAAjC;IAACC,QAAQ;IAAEC,OAAO;IAAEC;EAAU,CAAC;EAE7D,MAAMC,WAAW,GAAG,CAACL,EAAE,CAACM,OAAO,CAAC;EAEhC,IAAGH,OAAO,EAAE;IACRE,WAAW,CAACE,IAAI,CAACP,EAAE,CAACQ,MAAM,CAAC;EAC/B;EAEA,oBACE;IAAK,SAAS,EAAEH,WAAW,CAACI,IAAI,CAAC,GAAG,CAAE;IAAC,OAAO,EAAE,MAAML,UAAU,CAAC,KAAK,CAAE;IAAA,uBACtE;MAAK,SAAS,EAAEJ,EAAE,CAACU,cAAe;MAAC,OAAO,EAAGC,CAAC,IAAKA,CAAC,CAACC,eAAe,EAAG;MAAA,UACpEV;IAAQ;MAAA;MAAA;MAAA;IAAA;EACL;IAAA;IAAA;IAAA;EAAA,QACF;AAEV;AAAC,KAfuBD,OAAO;AAAA;AAAA"},"metadata":{},"sourceType":"module","externalDependencies":[]}